import { ITablePropList } from '@/components/myTable/types/index';

export const propList: ITablePropList = [
  {
    prop: 'name',
    label: '菜单名称',
    minWidth: 100,
    showOverflowTooltip: true,
  },
  {
    prop: 'type',
    label: '类型',
    minWidth: 80,
  },
  {
    prop: 'url',
    label: '菜单url',
    minWidth: 80,
  },
  {
    prop: 'icon',
    label: '图标',
    minWidth: 100,
  },
  {
    prop: 'permission',
    label: '权限',
  },
  {
    prop: 'updateAt',
    label: '更新时间',
    minWidth: 120,
  },

  {
    prop: 'handler',
    label: '操作',
    minWidth: 80,
    slotName: 'handler',
  },
];

export const childrenProps = {
  rowKey: 'id',
  treeProps: { children: 'children' },
};
